package cn.community.care.module.system.controller.admin.illnesshistory.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.community.care.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.community.care.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户生病历史分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class IllnessHistoryPageReqVO extends PageParam {

    @Schema(description = "用户 ID", example = "5507")
    private Long userId;

    @Schema(description = "疾病名称", example = "赵六")
    private String diseaseName;

    @Schema(description = "首次发病时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String firstOnsetDate;

    @Schema(description = "治疗情况")
    private String treatmentSituation;

    @Schema(description = "过敏史")
    private String allergyHistory;

    @Schema(description = "手术史")
    private String surgeryHistory;

    @Schema(description = "遗传病史")
    private String geneticDiseaseHistory;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}